package bounds

import bounds.upper.Person2

object MyImplict {
  implicit def person2OrderedPerson(p: Person2) = new Ordered[Person2] {
    override def compare(that: Person2): Int = {
      if (p.name.compareTo(that.name) == 0)
        p.age - that.age
      else p.name.compareTo(that.name)
    }
  }
}
